<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>18.1</title>
</head>

<body>
    <div id="app">
        <button v-on="{mouseenter: onEnter, mouseleave : onLeave}" @click="onClick">点我</button>
        <form v-on:submit.prevent="onSubmit" v-on:keyup.enter="onKeyup">
            <input type="text">
            <button type="submit">提交</button>
        </form>

    </div>

</body>
<script src="../lib/vue.js"></script>
<script src="js/main.js"></script>

</html>